package com.tech.platform.entity;

import com.swak.annotation.ColumnStrategy;
import com.swak.annotation.Table;
import com.swak.persistence.Model;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 描述
 * 
 * @author Auto Generator
 * @date 2021-03-28
 */
@Getter
@Setter
@Accessors(chain = true)
@Table(value="PLATFORM_JOB", strategy=ColumnStrategy.Full)
public class Job extends Model<Job, String> {
	
	public static final String Id = "ID";
	public static final String Name = "NAME";
	public static final String CronExpression = "CRON_EXPRESSION";
	public static final String ParallelAble = "PARALLEL_ABLE";
	public static final String CurrDispatchNo = "CURR_DISPATCH_NO";
	public static final String LastExecutionTime = "LAST_EXECUTION_TIME";
	public static final String NextExecutionTime = "NEXT_EXECUTION_TIME";
	public static final String Dispatchs = "DISPATCHS";
	public static final String Executions = "EXECUTIONS";
	public static final String CreateDate = "CREATE_DATE";
	public static final String UpdateDate = "UPDATE_DATE";
	
	private String name;
	private String cronExpression;
	private Byte parallelAble;
	private String currDispatchNo;
	private java.time.LocalDateTime lastExecutionTime;
	private java.time.LocalDateTime nextExecutionTime;
	private Integer dispatchs;
	private Integer executions;
	
	public static Job of() {
	  return new Job();
	}
}
